package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        Student zg = new Student();
        //访问成员变量
        zg.name = "张光";
        zg.setAge(18);
        zg.className = "jsd2408";
        zg.stuId = "001";
        //调用方法
        zg.play();
        zg.saHi();
        zg.playWith("李林");

        Student ll = new Student();
        ll.name = "李林";
        ll.setAge(-18);
        ll.className = "jsd2408";
        ll.stuId = "002";
        ll.play();
        ll.saHi();
        ll.playWith("张光");

        //1)创建了一个学生对象
        //2)给所有成员变量赋默认值
        Student zl = new Student();
        zl.play();
        zl.saHi();
        zl.playWith("张光");

    }

}
